import { ApiProperty } from '@nestjs/swagger';

export class AuthResponseDto {
  @ApiProperty({ example: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...', description: '访问令牌' })
  accessToken: string;

  @ApiProperty({ example: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...', description: '刷新令牌' })
  refreshToken: string;

  @ApiProperty({ example: '2025-12-31T23:59:59.999Z', description: '访问令牌过期时间' })
  expiresIn: string;

  @ApiProperty({ example: '2025-12-31T23:59:59.999Z', description: '刷新令牌过期时间' })
  refreshExpiresIn: string;

  constructor(partial: Partial<AuthResponseDto>) {
    Object.assign(this, partial);
  }
} 